export default {
  updateLang(state, ops) {
    state.lang = ops.lang;
    localStorage.setItem("lang", ops.lang);
  },
  getToken(state) {
    return state.token || localStorage.getItem("token");
  },
  setToken(state, ops) {
    state.token = ops.token;
    localStorage.setItem("token", ops.token);
  },
};
